﻿using ConsoleApp1;
using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;

namespace Car
    {
        class Program
        {
            static void Main(string[] args)
            {

                Car car = new Car();

                Console.WriteLine("输入车的名字：");
                car.Name = Console.ReadLine();

                Console.WriteLine("输入车的颜色：");
                car.Color = Console.ReadLine();

                Console.WriteLine("输入车的轮胎数");
                car.Tyre = int.Parse(Console.ReadLine());

                car.Run();

            Dog dog = new Dog();//实例化对象
            dog.Name();
            dog.Color();
            dog.Foot();

            Flish fish = new Flish();
            fish.Color(); 
            fish.Name();
            fish.Foot();
        }
    }
    }



